package com.name.givename.dao;

import com.github.pagehelper.Page;
import com.name.givename.dto.GiveNameHistoryDTO;
import com.name.givename.dto.NameListDTO;
import com.name.givename.entity.UserNamedInfoEntity;

import com.name.givename.param.ExamineNameParams;
import com.name.givename.param.PageParams;
import com.name.givename.param.UserNameInfoParams;

import java.util.List;

public interface UserNamedInfoEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserNamedInfoEntity record);

    UserNamedInfoEntity selectByPrimaryKey(Integer id);

    List<UserNamedInfoEntity> selectAll();

    int updateByPrimaryKey(UserNamedInfoEntity record);

    void batchInsert(List<UserNamedInfoEntity> userNamedInfoEntities);

    List<UserNamedInfoEntity> getUserNameInfoByIdOrName(String giveName);

    List<NameListDTO> getNameListInfo();

    List<GiveNameHistoryDTO> getUserAddNameList(String openId);

    Page<NameListDTO> getUserNames();

    void updateNameStatus(ExamineNameParams examineNameParams);
}